package com.zwjlg.aroutemoduleservice;

import android.app.Application;
import android.content.Context;

import com.alibaba.android.arouter.launcher.ARouter;
import com.zwjlg.baselibrary.HotFix;

//import hugo.weaving.DebugLog;

/**
 * ================================================
 * <p>
 * Created by ligang on 2021/3/29 19:08
 * ================================================
 */
public class App extends Application {
//    @DebugLog
    @Override
    public void onCreate() {
        super.onCreate();
        //动态加载hack
        HotFix.getInstance().init(this);
//        HotFix.getInstance().injectHack("hack1.dex");
        ARouter.openLog();
        ARouter.openDebug();
        ARouter.init(this);
    }

    @Override
    protected void attachBaseContext(Context base) {
//        HotFixEngine.copyDexFileToAppAndFix(base, "classes_fix.dex", true);
        super.attachBaseContext(base);
    }
}
